package com.jason.feign;

import com.jason.vo.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-email")
public interface EmailFeignClient {

    @RequestMapping("/email/send")
    Response sendEmail(@RequestParam("email") String email,
                       @RequestParam("subject") String subject,
                       @RequestParam("content") String content);
}
